import request from '@/utils/request'
const api_name = '/ucenter/kaptcha'

export function getKaptcha() {
  return request({
    url: `${api_name}`,
    method: 'get'
  })
}

export function checkKaptcha(data) {
  return request({
    url: `${api_name}`,
    method: 'post',
    data
  })
}

export function updateKaptcha(data) {
  return request({
    url: `${api_name}`,
    method: 'put',
    data
  })
}
